package com.gc.server.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.util.Date;


/**
 * 投票记录实体
 * 表名 vote
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date ${datetime}
 */
@Setter
@Getter
public class VoteEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Long id;
        //用户ID
    private Long userId;
        //绘本ID
    private Long bookId;
        //投票时间
    private Date time;
        //起止时间
    Date[] times;
    
    public VoteEntity(){

    }

    public VoteEntity(Long userId, Long bookId, Date time) {
        this.userId = userId;
        this.bookId = bookId;
        this.time = time;
    }
}
